p = [] #init a empty list
print p
p.append(4) #append the list
print p
p.append("hello")
print p
p.append(True)
print p

for a in p:
	print a

print p[0]  #element 0
print p[0:2] #from element 0 to element 2-1
p.reverse() #reverses the list
print p
r = [1, 7, 2, 9, 3]
print r
r.sort() #sorts the list
print r
r.pop(0) #deletes the element on the Oth position on the list
print r
p.extend(r) #adds the elements of r to the list p
print p
a = [2, 5, 7]
b = [x**2 for x in a] # list comprehension.... 
print b
c = [x**3 for x in range(10) if (x%2) == 0]
print c